<?php

class ConfirmacaoDao extends Dao {

    public function injectDependencies() {

    }

    public function findByRelease($IDLancamento) {
        $this->initConnection();
        $this->tMysqli->escape($IDLancamento);
        $StSql = TQuery::getSqlFindConfirmationByRelease($IDLancamento);
        $tQuery = $this->tMysqli->exec($StSql);
        while($ArConfirmationData = mysqli_fetch_assoc($tQuery)) {
            $Lancamento = new Confirmacao($ArConfirmationData);
        }
        $this->closeConnection();
        return isset($Lancamento) ? $Lancamento : null;
    }

}

?>
